var myChart = echarts.init(document.getElementById('main'));  
var option = {
  title: {
    text: 'JavaScript语言排名变化'
  },
  tooltip: {},
  legend: {
    data:['排名']
  },
  xAxis: {
    data: ['2000','2005','2010','2015','2020']
  },
  yAxis: {},
  series: [{
    name: '排名',
    type: 'line',
    smooth:true,
    data: ['6','9','8','8','7']
  }]
};

myChart.setOption(option);
